package com.ilongsay.service.impl;

import com.ilongsay.dao.BillDao;
import com.ilongsay.dao.BillDetailDao;
import com.ilongsay.entity.FaPiaoDetail;
import com.ilongsay.service.IBillDetailService;
import com.ilongsay.zhujie.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author ilongsay
 * @Email ilongsay@163.com
 * @Copyright 版本所有，侵权必究！
 * @Datetime 2018-11-11 17:52
 * @Describution
 */

@Service("billDetailService")
public class BillDetailServiceImpl implements IBillDetailService {

    @Autowired
    private BillDetailDao billDetailDao;

    @Override
    public List<FaPiaoDetail> findBillDetailByBillCode(String billCode) {
        return billDetailDao.findByBillCode(billCode);
    }

    @Override
    public List<FaPiaoDetail> findBillDetail() {
        return billDetailDao.findAllBillDetail();
    }
}
